/*
 * =====================================================================================
 *
 *       Filename:  forkx.c
 *
 *    Description:  forkx demo and test
 *
 *        Version:  1.0
 *        Created:  04/27/2012 12:25:04 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Zhiyi Wu (Z.W), zhiyiw@uoregon.edu
 *        Company:  University of Oregon
 *
 * =====================================================================================
 */


#include	<stdio.h>
#include	"sys/types.h"
#include	<unistd.h>
int main(){
	pid_t  pid1,pid2;


	pid1=fork();
	pid2=fork();


	printf("pid1:%d, pid2:%d\n", pid1, pid2);
	printf("mypid:%d,\n", getpid());
	
}

